﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;

/// <summary>
/// Summary description for CustomerBOL
/// </summary>
public class CustomerBOL
{
	public CustomerBOL()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    public DataTable LoadCustomer()
    {
        CustomerDAL cDAL = new CustomerDAL();
        try
        {
            return cDAL.LoadCustomer();
        }
        catch
        {
            throw;
        }
    }
    public int insertCustomer(Customer c)
    {
        CustomerDAL cDAL = new CustomerDAL();
        try
        {
            return cDAL.insertCusromer(c);
        }
        catch
        {
            throw;
        }
        finally
        {
            cDAL = null;
        }
    }
    public int updateCustomer(Customer c)
    {
        CustomerDAL cDAL = new CustomerDAL();
        try
        {
            return cDAL.updateCustomer(c);
        }
        catch
        {
            throw;
        }
        finally
        {
            cDAL = null;
        }
    }
    public int deleteCustomer(Customer c)
    {
        CustomerDAL cDAL = new CustomerDAL();
        try
        {
            return cDAL.deleteCustomer(c);
        }
        catch
        {
            throw;
        }
        finally
        {
            cDAL = null;
        }
    }
}